let local = 1; // 1 正式  2 业务测试  3本地
let BASE;
let BASE_URL;
let QRODE_BASEURL;
let IMAGE_URL;
let QRCODE_URL;
let Setting_URL;
let HangUp_URL;
let Upload_URL;
let IMAGEURL1;
let UploadURL1;
let Punchin;
let wsUrl;

switch (local) {
	case 1: // 正式
		BASE = ''
		BASE_URL = BASE + 'http://www.qjjxh.com:8081/handle-api' // 登录
		IMAGE_URL = BASE + 'http://www.qjjxh.com:8081/file' // 图片
		QRCODE_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码
		Setting_URL = BASE + 'http://www.qjjxh.com:8081/file/' // 更新版本
		HangUp_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码挂起
		Upload_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码照片提交
		IMAGEURL1 = BASE + 'http://www.qjjxh.com:8081/file' // 案件上报回显图片
		UploadURL1 = BASE + 'http://www.qjjxh.com:8081/handle-api/' // 案件上报提交图片

		wsUrl = BASE + 'wss://www.qjjxh.com/handle-api/webSocket/videoCall';

		break
	case 2: // 业务测试
		BASE = ''
		BASE_URL = BASE + 'http://www.findoma.com/handle-api'
		IMAGE_URL = BASE + 'http://www.findoma.com/findoma-file'
		QRCODE_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/'
		Setting_URL = BASE + 'http://www.qjjxh.com:8081/file/'
		HangUp_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/'
		Upload_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/'
		IMAGEURL1 = BASE + 'http://www.qjjxh.com:8081/file'
		UploadURL1 = BASE + 'http://www.qjjxh.com:8081/handle-api/'

		wsUrl = BASE + 'ws://192.168.100.69:8080/webSocket/videoCall';

		break
	case 3: // 本地联调
		BASE = ''
		BASE_URL = BASE + 'http://192.168.100.69:8080' //登录
		IMAGE_URL = BASE + 'http://192.168.100.69:8081/szcg' //图片
		QRCODE_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码
		Setting_URL = BASE + 'http://www.qjjxh.com:8081/file/' // 更新版本
		HangUp_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码挂起
		Upload_URL = BASE + 'http://www.qjjxh.com:8081/qrcode-api/' // 二维码照片提交
		IMAGEURL1 = BASE + 'http://192.168.100.69:8080/profile' // 案件上报回显图片
		UploadURL1 = BASE + 'http://192.168.100.69:8080/' // 案件上报提交图片

		wsUrl = BASE + 'ws://192.168.100.69:8080/webSocket/videoCall';

		break
}

const URL = {
	GetisCheckHbCase: BASE_URL + 'business/event/eventApproval/saveEventSlow',
	CASEIMAGE_URL: IMAGE_URL,
	BASE_URL: BASE_URL,
	QRCODE_URL: QRCODE_URL,
	LoginIn: BASE_URL + '/business/app/login/appLogin',
	QRcode: QRCODE_URL + 'app/getQrcodeInfo/',
	QRunbind: QRCODE_URL + 'qrCode/bind/unBind',
	QRisbind: QRCODE_URL + 'qrCode/bind/isBind',
	Setting: Setting_URL + 'APP/qj-handle.apk',
	HangUp: HangUp_URL + 'qrCode/bind/reasonList',
	Upload: Upload_URL + 'common/upload', //二维码图片提交接口
	Upload1: UploadURL1 + 'common/uploadImage', //案件上报图片提交接口
	IMAGEURL: IMAGEURL1,
	Punchin: BASE_URL + '/business/app/clockin/getClockInInfo', //打卡
	wsUrl
}
export default URL
